conrad fixes the fix for tmpro.
authortsteven4 <tsteven4@f51c46e8-681c-474f-0cfe-069cfd0219fb>
Thu, 8 Aug 2013 03:36:50 +0000 (03:36 +0000)
committertsteven4 <tsteven4@f51c46e8-681c-474f-0cfe-069cfd0219fb>
Thu, 8 Aug 2013 03:36:50 +0000 (03:36 +0000)
git-svn-id: http://gpsbabel.googlecode.com/svn/trunk@4524 f51c46e8-681c-474f-0cfe-069cfd0219fb

gpsbabel/tmpro.cc

index 1f0089519132cf31c16a3813ca7d3daca6493f73..78523062c948a7f5d1442b5f3fcb1971f5967f70 100644 (file)
@@ -216,7 +216,7 @@ tmpro_waypt_pr(const waypoint * wpt)
   if (wpt->HasUrlLink()) {
     // Yes, it's lame to allocate/copy here.
     UrlLink link = wpt->GetUrlLink();
-    l  = xstrdup(link.url_.toUtf8().data());
+    l = xstrdup(link.url_.toUtf8().data());
   }
   gbfprintf(file_out, "new\t%.6s\t%.80s\t%08.6f\t%08.6f\t\t\t%.2f\t%d\t%d\t%.128s\n",
             shortname,
@@ -226,7 +226,7 @@ tmpro_waypt_pr(const waypoint * wpt)
             wpt->altitude,
             colour,
             icon,
-            l
+            l ? l : ""
            );